#ifndef PERSONALCENTER_H
#define PERSONALCENTER_H

#include <QWidget>
#include "user.h"
namespace Ui {
class PersonalCenter;
}

class PersonalCenter : public QWidget
{
    Q_OBJECT

public:
    explicit PersonalCenter(QWidget *parent = nullptr);
    explicit PersonalCenter(User,QWidget* parent=nullptr);
    void setText(User cur);
    ~PersonalCenter();
    void OnUserDataChange();
    void setUser(User);
signals:
    void changeUserData(User change);
private:
    Ui::PersonalCenter *ui;
    User current;
};

#endif // PERSONALCENTER_H
